// 库存管理接口
import request from "@/common/request.js";
const api = {
  client_visit: "/client_visit/",
  staff: "/staff/",
  client: "/client/",
};

const clCallbackApi = {
  get_staff(params) {
    return request({
      url: api.staff,
      method: "get",
      params,
    });
  },

  get_client(params) {
    return request({
      url: api.client,
      method: "get",
      params,
    });
  },
  get_client_visit(params) {
    return request({
      url: api.client_visit,
      method: "get",
      params,
    });
  },

  client_visit_detail(id) {
    return request({
      url: api.client_visit + id,
      method: "get",
    });
  },

  post_client_visit(data) {
    return request({
      url: api.client_visit,
      method: "post",
      data,
    });
  },

  patch_client_visit(data, id) {
    return request({
      url: api.client_visit + id + "/",
      method: "patch",
      data,
    });
  },

  delete_client_visit(id) {
    return request({
      url: api.client_visit + id + "/",
      method: "delete",
    });
  },
};
export default clCallbackApi